* {
  margin: 0;
  padding: 0;
  color: #000;
}
.todoList {
  width: 500px;
  margin: auto;
  border: 1px solid #000;
  padding: 20px;
}
header {
  display: flex;
  justify-content: space-between;
  height: 32px;
  font-size: 16px;
  margin-bottom: 10px;
  h1 {
    font-size: inherit;
  }
}
.unfinished,
.finished {
  border: 1px solid #000;
  padding: 10px;
}
.unfinished {
  margin-bottom: 10px;
  & > p {
    color: #eb4646;
  }
}
.finished > p {
  color: rgb(79, 209, 79);
}
.todo-content {
  padding: 10px;
  &-item {
    border: 1px solid #000;
    background-color: #fff;
    box-sizing: border-box;
    padding: 10px;
    overflow: hidden;
    height: 42px;
    line-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .text {
      display: flex;
      p {
        margin-left: 10px;
      }
    }
    .btn {
      button {
        padding: 2px 5px;
        font-size: 12px;
        cursor: pointer;
        &:first-child {
          margin-right: 10px;
        }
      }
    }
  }
}
